home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / dbase / do1beta.zip / IODEF.DO < prev    next >
Text File  |  1991-07-25  |  1KB  |  34 lines

  1. /*
  2.     some constant definitions for new(File,...)
  3. */
  4. /* File Attributes */
  5. #define FA_RDONLY "$01"    /* Read only file       */
  6. #define FA_HIDDEN "$02"    /* Hidden file          */
  7. #define FA_SYSTEM "$04"    /* System file          */
  8. #define FA_SUBDIR "$10"    /* Subdirectory         */
  9. #define FA_ARCH   "$20"    /* Archive file         */
  10. #define FA_NORMAL "$40"    /* Normal file - No read/write restrictions */
  11.  
  12. /* File usage Modes */
  13. #define FM_ACCESS_WO "$0001"  /* write only           */
  14. #define FM_ACCESS_RW "$0002"  /* read/write           */
  15. #define FM_ACCESS_RO "$0004"  /* read only            */
  16. #define FM_SH_DENYRW "$0010"  /* deny read/write mode */
  17. #define FM_SH_DENYWR "$0020"  /* deny write mode      */
  18. #define FM_SH_DENYRD "$0030"  /* deny read mode       */
  19. #define FM_SH_DENYNO "$0040"  /* deny none mode       */
  20.  
  21. /* Exclusively for OS2 and DOS >4.0 */
  22. #define FM_RETURNERR "$2000"  /* return error rather than call crit hand. */
  23. #define FM_WRITETHRU "$4000"  /* write through        */
  24.  
  25. /* Creation Flags */
  26. /* Actions if file exists (low nibble) :    */
  27. #define CR_EX_FAIL    "$00"
  28. #define CR_EX_OPEN    "$01"
  29. #define CR_EX_REPLACE    "$02"
  30.  
  31. /* Actions if file doesn't exist (high nibble):    */
  32. #define CR_NOEX_FAIL    "$00"
  33. #define CR_NOEX_CREATE    "$10"
  34.